home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / CoolMacStacks.sea / Cool Mac Stacks / Building Blocks / ListSelect 4.1 (US) / cards.xml < prev    next >
Text File  |  1991-12-17  |  30KB  |  683 lines

  1. card_2346.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>2346</id>
  6.     <filler1>0</filler1>
  7.     <cantDelete> <false /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <owner>2661</owner>
  11.     <link rel="stylesheet" type="text/css" href="stylesheet_3712.css" />
  12.     <part>
  13.         <id>1</id>
  14.         <type>button</type>
  15.         <visible> <true /> </visible>
  16.         <reserved5> 0 </reserved5>
  17.         <reserved4> 0 </reserved4>
  18.         <reserved3> 0 </reserved3>
  19.         <reserved2> 0 </reserved2>
  20.         <reserved1> 0 </reserved1>
  21.         <enabled> <true /> </enabled>
  22.         <rect>
  23.             <left>60</left>
  24.             <top>34</top>
  25.             <right>139</right>
  26.             <bottom>60</bottom>
  27.         </rect>
  28.         <style>roundrect</style>
  29.         <showName> <true /> </showName>
  30.         <highlight> <false /> </highlight>
  31.         <autoHighlight> <true /> </autoHighlight>
  32.         <sharedHighlight> <true /> </sharedHighlight>
  33.         <family>0</family>
  34.         <titleWidth>0</titleWidth>
  35.         <icon>0</icon>
  36.         <textAlign>center</textAlign>
  37.         <font>Chicago</font>
  38.         <textSize>12</textSize>
  39.         <textStyle>plain</textStyle>
  40.         <name>Test</name>
  41.         <script>on mouseUpput ListSelect("1","Red,Orange,Yellow,Green,Blue") into choiceput choiceend mouseUp</script>
  42.     </part>
  43.     <name></name>
  44.     <script></script>
  45. </card>
  46.  
  47.  
  48. card_3055.xml
  49. <?xml version="1.0" encoding="utf-8" ?>
  50. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  51. <card>
  52.     <id>3055</id>
  53.     <filler1>0</filler1>
  54.     <bitmap>BMAP_3273.pbm</bitmap>
  55.     <cantDelete> <false /> </cantDelete>
  56.     <showPict> <true /> </showPict>
  57.     <dontSearch> <false /> </dontSearch>
  58.     <owner>2661</owner>
  59.     <link rel="stylesheet" type="text/css" href="stylesheet_3712.css" />
  60.     <part>
  61.         <id>5</id>
  62.         <type>button</type>
  63.         <visible> <true /> </visible>
  64.         <reserved5> 0 </reserved5>
  65.         <reserved4> 0 </reserved4>
  66.         <reserved3> 0 </reserved3>
  67.         <reserved2> 0 </reserved2>
  68.         <reserved1> 0 </reserved1>
  69.         <enabled> <true /> </enabled>
  70.         <rect>
  71.             <left>185</left>
  72.             <top>290</top>
  73.             <right>345</right>
  74.             <bottom>307</bottom>
  75.         </rect>
  76.         <style>roundrect</style>
  77.         <showName> <true /> </showName>
  78.         <highlight> <false /> </highlight>
  79.         <autoHighlight> <true /> </autoHighlight>
  80.         <sharedHighlight> <true /> </sharedHighlight>
  81.         <family>0</family>
  82.         <titleWidth>0</titleWidth>
  83.         <icon>0</icon>
  84.         <textAlign>center</textAlign>
  85.         <font>Chicago</font>
  86.         <textSize>12</textSize>
  87.         <textStyle>plain</textStyle>
  88.         <name>ListSelect Test >></name>
  89.         <script>on mouseUpglobal ListSelectExitput "get ListSelect (" & inQ(cd fld 1) & ",cd fld 2" into Cmdrepeat with i=3 to 7if hilite of btn ithenif cd fld i is in "return,tab,linefeed,formfeed"then put "," & cd fld i after Cmdelse put "," & inQ(cd fld i) after Cmdend ifend repeatput ")" after Cmdput cmddo Cmdput it into cd fld 8put ListSelectExit into cd fld "Exit"end mouseUpfunction inQ whatreturn quote & what & quoteend inQ</script>
  90.     </part>
  91.     <part>
  92.         <id>8</id>
  93.         <type>field</type>
  94.         <visible> <true /> </visible>
  95.         <dontWrap> <false /> </dontWrap>
  96.         <dontSearch> <false /> </dontSearch>
  97.         <sharedText> <false /> </sharedText>
  98.         <fixedLineHeight> <true /> </fixedLineHeight>
  99.         <autoTab> <true /> </autoTab>
  100.         <lockText> <false /> </lockText>
  101.         <rect>
  102.             <left>51</left>
  103.             <top>256</top>
  104.             <right>91</right>
  105.             <bottom>271</bottom>
  106.         </rect>
  107.         <style>rectangle</style>
  108.         <autoSelect> <false /> </autoSelect>
  109.         <showLines> <false /> </showLines>
  110.         <wideMargins> <false /> </wideMargins>
  111.         <multipleLines> <false /> </multipleLines>
  112.         <reservedFamily> 0 </reservedFamily>
  113.         <titleWidth>0</titleWidth>
  114.         <icon>0</icon>
  115.         <textAlign>center</textAlign>
  116.         <font>Geneva</font>
  117.         <textSize>9</textSize>
  118.         <textStyle>plain</textStyle>
  119.         <textHeight>12</textHeight>
  120.         <name></name>
  121.         <script></script>
  122.     </part>
  123.     <part>
  124.         <id>9</id>
  125.         <type>field</type>
  126.         <visible> <true /> </visible>
  127.         <dontWrap> <false /> </dontWrap>
  128.         <dontSearch> <false /> </dontSearch>
  129.         <sharedText> <false /> </sharedText>
  130.         <fixedLineHeight> <true /> </fixedLineHeight>
  131.         <autoTab> <false /> </autoTab>
  132.         <lockText> <false /> </lockText>
  133.         <rect>
  134.             <left>92</left>
  135.             <top>256</top>
  136.             <right>180</right>
  137.             <bottom>342</bottom>
  138.         </rect>
  139.         <style>scrolling</style>
  140.         <autoSelect> <false /> </autoSelect>
  141.         <showLines> <false /> </showLines>
  142.         <wideMargins> <false /> </wideMargins>
  143.         <multipleLines> <false /> </multipleLines>
  144.         <reservedFamily> 0 </reservedFamily>
  145.         <titleWidth>0</titleWidth>
  146.         <icon>0</icon>
  147.         <textAlign>left</textAlign>
  148.         <font>Geneva</font>
  149.         <textSize>9</textSize>
  150.         <textStyle>plain</textStyle>
  151.         <textHeight>12</textHeight>
  152.         <name></name>
  153.         <script></script>
  154.     </part>
  155.     <part>
  156.         <id>10</id>
  157.         <type>field</type>
  158.         <visible> <true /> </visible>
  159.         <dontWrap> <false /> </dontWrap>
  160.         <dontSearch> <false /> </dontSearch>
  161.         <sharedText> <false /> </sharedText>
  162.         <fixedLineHeight> <true /> </fixedLineHeight>
  163.         <autoTab> <true /> </autoTab>
  164.         <lockText> <false /> </lockText>
  165.         <rect>
  166.             <left>181</left>
  167.             <top>256</top>
  168.             <right>238</right>
  169.             <bottom>271</bottom>
  170.         </rect>
  171.         <style>rectangle</style>
  172.         <autoSelect> <false /> </autoSelect>
  173.         <showLines> <false /> </showLines>
  174.         <wideMargins> <false /> </wideMargins>
  175.         <multipleLines> <false /> </multipleLines>
  176.         <reservedFamily> 0 </reservedFamily>
  177.         <titleWidth>0</titleWidth>
  178.         <icon>0</icon>
  179.         <textAlign>left</textAlign>
  180.         <font>Geneva</font>
  181.         <textSize>9</textSize>
  182.         <textStyle>plain</textStyle>
  183.         <textHeight>12</textHeight>
  184.         <name></name>
  185.         <script></script>
  186.     </part>
  187.     <part>
  188.         <id>11</id>
  189.         <type>field</type>
  190.         <visible> <true /> </visible>
  191.         <dontWrap> <false /> </dontWrap>
  192.         <dontSearch> <false /> </dontSearch>
  193.         <sharedText> <false /> </sharedText>
  194.         <fixedLineHeight> <true /> </fixedLineHeight>
  195.         <autoTab> <true /> </autoTab>
  196.         <lockText> <false /> </lockText>
  197.         <rect>
  198.             <left>242</left>
  199.             <top>256</top>
  200.             <right>299</right>
  201.             <bottom>271</bottom>
  202.         </rect>
  203.         <style>rectangle</style>
  204.         <autoSelect> <false /> </autoSelect>
  205.         <showLines> <false /> </showLines>
  206.         <wideMargins> <false /> </wideMargins>
  207.         <multipleLines> <false /> </multipleLines>
  208.         <reservedFamily> 0 </reservedFamily>
  209.         <titleWidth>0</titleWidth>
  210.         <icon>0</icon>
  211.         <textAlign>left</textAlign>
  212.         <font>Geneva</font>
  213.         <textSize>9</textSize>
  214.         <textStyle>plain</textStyle>
  215.         <textHeight>12</textHeight>
  216.         <name></name>
  217.         <script></script>
  218.     </part>
  219.     <part>
  220.         <id>12</id>
  221.         <type>field</type>
  222.         <visible> <true /> </visible>
  223.         <dontWrap> <false /> </dontWrap>
  224.         <dontSearch> <false /> </dontSearch>
  225.         <sharedText> <false /> </sharedText>
  226.         <fixedLineHeight> <true /> </fixedLineHeight>
  227.         <autoTab> <true /> </autoTab>
  228.         <lockText> <false /> </lockText>
  229.         <rect>
  230.             <left>303</left>
  231.             <top>256</top>
  232.             <right>360</right>
  233.             <bottom>271</bottom>
  234.         </rect>
  235.         <style>rectangle</style>
  236.         <autoSelect> <false /> </autoSelect>
  237.         <showLines> <false /> </showLines>
  238.         <wideMargins> <false /> </wideMargins>
  239.         <multipleLines> <false /> </multipleLines>
  240.         <reservedFamily> 0 </reservedFamily>
  241.         <titleWidth>0</titleWidth>
  242.         <icon>0</icon>
  243.         <textAlign>left</textAlign>
  244.         <font>Geneva</font>
  245.         <textSize>9</textSize>
  246.         <textStyle>plain</textStyle>
  247.         <textHeight>12</textHeight>
  248.         <name></name>
  249.         <script></script>
  250.     </part>
  251.     <part>
  252.         <id>13</id>
  253.         <type>field</type>
  254.         <visible> <true /> </visible>
  255.         <dontWrap> <false /> </dontWrap>
  256.         <dontSearch> <false /> </dontSearch>
  257.         <sharedText> <false /> </sharedText>
  258.         <fixedLineHeight> <true /> </fixedLineHeight>
  259.         <autoTab> <true /> </autoTab>
  260.         <lockText> <false /> </lockText>
  261.         <rect>
  262.             <left>364</left>
  263.             <top>256</top>
  264.             <right>421</right>
  265.             <bottom>271</bottom>
  266.         </rect>
  267.         <style>rectangle</style>
  268.         <autoSelect> <false /> </autoSelect>
  269.         <showLines> <false /> </showLines>
  270.         <wideMargins> <false /> </wideMargins>
  271.         <multipleLines> <false /> </multipleLines>
  272.         <reservedFamily> 0 </reservedFamily>
  273.         <titleWidth>0</titleWidth>
  274.         <icon>0</icon>
  275.         <textAlign>left</textAlign>
  276.         <font>Geneva</font>
  277.         <textSize>9</textSize>
  278.         <textStyle>plain</textStyle>
  279.         <textHeight>12</textHeight>
  280.         <name></name>
  281.         <script></script>
  282.     </part>
  283.     <part>
  284.         <id>14</id>
  285.         <type>field</type>
  286.         <visible> <true /> </visible>
  287.         <dontWrap> <false /> </dontWrap>
  288.         <dontSearch> <false /> </dontSearch>
  289.         <sharedText> <false /> </sharedText>
  290.         <fixedLineHeight> <true /> </fixedLineHeight>
  291.         <autoTab> <true /> </autoTab>
  292.         <lockText> <false /> </lockText>
  293.         <rect>
  294.             <left>425</left>
  295.             <top>256</top>
  296.             <right>482</right>
  297.             <bottom>271</bottom>
  298.         </rect>
  299.         <style>rectangle</style>
  300.         <autoSelect> <false /> </autoSelect>
  301.         <showLines> <false /> </showLines>
  302.         <wideMargins> <false /> </wideMargins>
  303.         <multipleLines> <false /> </multipleLines>
  304.         <reservedFamily> 0 </reservedFamily>
  305.         <titleWidth>0</titleWidth>
  306.         <icon>0</icon>
  307.         <textAlign>left</textAlign>
  308.         <font>Geneva</font>
  309.         <textSize>9</textSize>
  310.         <textStyle>plain</textStyle>
  311.         <textHeight>12</textHeight>
  312.         <name></name>
  313.         <script></script>
  314.     </part>
  315.     <part>
  316.         <id>15</id>
  317.         <type>field</type>
  318.         <visible> <true /> </visible>
  319.         <dontWrap> <false /> </dontWrap>
  320.         <dontSearch> <false /> </dontSearch>
  321.         <sharedText> <false /> </sharedText>
  322.         <fixedLineHeight> <true /> </fixedLineHeight>
  323.         <autoTab> <false /> </autoTab>
  324.         <lockText> <true /> </lockText>
  325.         <rect>
  326.             <left>353</left>
  327.             <top>290</top>
  328.             <right>492</right>
  329.             <bottom>342</bottom>
  330.         </rect>
  331.         <style>scrolling</style>
  332.         <autoSelect> <false /> </autoSelect>
  333.         <showLines> <false /> </showLines>
  334.         <wideMargins> <false /> </wideMargins>
  335.         <multipleLines> <false /> </multipleLines>
  336.         <reservedFamily> 0 </reservedFamily>
  337.         <titleWidth>0</titleWidth>
  338.         <icon>0</icon>
  339.         <textAlign>left</textAlign>
  340.         <font>Geneva</font>
  341.         <textSize>9</textSize>
  342.         <textStyle>plain</textStyle>
  343.         <textHeight>12</textHeight>
  344.         <name></name>
  345.         <script></script>
  346.     </part>
  347.     <part>
  348.         <id>1</id>
  349.         <type>field</type>
  350.         <visible> <true /> </visible>
  351.         <dontWrap> <false /> </dontWrap>
  352.         <dontSearch> <false /> </dontSearch>
  353.         <sharedText> <false /> </sharedText>
  354.         <fixedLineHeight> <true /> </fixedLineHeight>
  355.         <autoTab> <false /> </autoTab>
  356.         <lockText> <true /> </lockText>
  357.         <rect>
  358.             <left>69</left>
  359.             <top>68</top>
  360.             <right>434</right>
  361.             <bottom>252</bottom>
  362.         </rect>
  363.         <style>scrolling</style>
  364.         <autoSelect> <false /> </autoSelect>
  365.         <showLines> <false /> </showLines>
  366.         <wideMargins> <false /> </wideMargins>
  367.         <multipleLines> <false /> </multipleLines>
  368.         <reservedFamily> 0 </reservedFamily>
  369.         <titleWidth>0</titleWidth>
  370.         <icon>0</icon>
  371.         <textAlign>left</textAlign>
  372.         <font>Geneva</font>
  373.         <textSize>9</textSize>
  374.         <textStyle>plain</textStyle>
  375.         <textHeight>12</textHeight>
  376.         <name></name>
  377.         <script></script>
  378.     </part>
  379.     <part>
  380.         <id>22</id>
  381.         <type>button</type>
  382.         <visible> <false /> </visible>
  383.         <reserved5> 0 </reserved5>
  384.         <reserved4> 0 </reserved4>
  385.         <reserved3> 0 </reserved3>
  386.         <reserved2> 0 </reserved2>
  387.         <reserved1> 0 </reserved1>
  388.         <enabled> <true /> </enabled>
  389.         <rect>
  390.             <left>0</left>
  391.             <top>326</top>
  392.             <right>18</right>
  393.             <bottom>342</bottom>
  394.         </rect>
  395.         <style>checkbox</style>
  396.         <showName> <false /> </showName>
  397.         <highlight> <false /> </highlight>
  398.         <autoHighlight> <true /> </autoHighlight>
  399.         <sharedHighlight> <true /> </sharedHighlight>
  400.         <family>0</family>
  401.         <titleWidth>0</titleWidth>
  402.         <icon>0</icon>
  403.         <textAlign>center</textAlign>
  404.         <font>Chicago</font>
  405.         <textSize>12</textSize>
  406.         <textStyle>plain</textStyle>
  407.         <name></name>
  408.         <script></script>
  409.     </part>
  410.     <part>
  411.         <id>17</id>
  412.         <type>button</type>
  413.         <visible> <true /> </visible>
  414.         <reserved5> 0 </reserved5>
  415.         <reserved4> 0 </reserved4>
  416.         <reserved3> 0 </reserved3>
  417.         <reserved2> 0 </reserved2>
  418.         <reserved1> 0 </reserved1>
  419.         <enabled> <true /> </enabled>
  420.         <rect>
  421.             <left>200</left>
  422.             <top>272</top>
  423.             <right>218</right>
  424.             <bottom>288</bottom>
  425.         </rect>
  426.         <style>checkbox</style>
  427.         <showName> <false /> </showName>
  428.         <highlight> <false /> </highlight>
  429.         <autoHighlight> <true /> </autoHighlight>
  430.         <sharedHighlight> <true /> </sharedHighlight>
  431.         <family>0</family>
  432.         <titleWidth>0</titleWidth>
  433.         <icon>0</icon>
  434.         <textAlign>center</textAlign>
  435.         <font>Chicago</font>
  436.         <textSize>12</textSize>
  437.         <textStyle>plain</textStyle>
  438.         <name></name>
  439.         <script></script>
  440.     </part>
  441.     <part>
  442.         <id>18</id>
  443.         <type>button</type>
  444.         <visible> <true /> </visible>
  445.         <reserved5> 0 </reserved5>
  446.         <reserved4> 0 </reserved4>
  447.         <reserved3> 0 </reserved3>
  448.         <reserved2> 0 </reserved2>
  449.         <reserved1> 0 </reserved1>
  450.         <enabled> <true /> </enabled>
  451.         <rect>
  452.             <left>262</left>
  453.             <top>272</top>
  454.             <right>280</right>
  455.             <bottom>288</bottom>
  456.         </rect>
  457.         <style>checkbox</style>
  458.         <showName> <false /> </showName>
  459.         <highlight> <false /> </highlight>
  460.         <autoHighlight> <true /> </autoHighlight>
  461.         <sharedHighlight> <true /> </sharedHighlight>
  462.         <family>0</family>
  463.         <titleWidth>0</titleWidth>
  464.         <icon>0</icon>
  465.         <textAlign>center</textAlign>
  466.         <font>Chicago</font>
  467.         <textSize>12</textSize>
  468.         <textStyle>plain</textStyle>
  469.         <name></name>
  470.         <script></script>
  471.     </part>
  472.     <part>
  473.         <id>19</id>
  474.         <type>button</type>
  475.         <visible> <true /> </visible>
  476.         <reserved5> 0 </reserved5>
  477.         <reserved4> 0 </reserved4>
  478.         <reserved3> 0 </reserved3>
  479.         <reserved2> 0 </reserved2>
  480.         <reserved1> 0 </reserved1>
  481.         <enabled> <true /> </enabled>
  482.         <rect>
  483.             <left>323</left>
  484.             <top>272</top>
  485.             <right>341</right>
  486.             <bottom>288</bottom>
  487.         </rect>
  488.         <style>checkbox</style>
  489.         <showName> <false /> </showName>
  490.         <highlight> <false /> </highlight>
  491.         <autoHighlight> <true /> </autoHighlight>
  492.         <sharedHighlight> <true /> </sharedHighlight>
  493.         <family>0</family>
  494.         <titleWidth>0</titleWidth>
  495.         <icon>0</icon>
  496.         <textAlign>center</textAlign>
  497.         <font>Chicago</font>
  498.         <textSize>12</textSize>
  499.         <textStyle>plain</textStyle>
  500.         <name></name>
  501.         <script></script>
  502.     </part>
  503.     <part>
  504.         <id>20</id>
  505.         <type>button</type>
  506.         <visible> <true /> </visible>
  507.         <reserved5> 0 </reserved5>
  508.         <reserved4> 0 </reserved4>
  509.         <reserved3> 0 </reserved3>
  510.         <reserved2> 0 </reserved2>
  511.         <reserved1> 0 </reserved1>
  512.         <enabled> <true /> </enabled>
  513.         <rect>
  514.             <left>385</left>
  515.             <top>272</top>
  516.             <right>403</right>
  517.             <bottom>288</bottom>
  518.         </rect>
  519.         <style>checkbox</style>
  520.         <showName> <false /> </showName>
  521.         <highlight> <false /> </highlight>
  522.         <autoHighlight> <true /> </autoHighlight>
  523.         <sharedHighlight> <true /> </sharedHighlight>
  524.         <family>0</family>
  525.         <titleWidth>0</titleWidth>
  526.         <icon>0</icon>
  527.         <textAlign>center</textAlign>
  528.         <font>Chicago</font>
  529.         <textSize>12</textSize>
  530.         <textStyle>plain</textStyle>
  531.         <name></name>
  532.         <script></script>
  533.     </part>
  534.     <part>
  535.         <id>21</id>
  536.         <type>button</type>
  537.         <visible> <true /> </visible>
  538.         <reserved5> 0 </reserved5>
  539.         <reserved4> 0 </reserved4>
  540.         <reserved3> 0 </reserved3>
  541.         <reserved2> 0 </reserved2>
  542.         <reserved1> 0 </reserved1>
  543.         <enabled> <true /> </enabled>
  544.         <rect>
  545.             <left>447</left>
  546.             <top>272</top>
  547.             <right>465</right>
  548.             <bottom>288</bottom>
  549.         </rect>
  550.         <style>checkbox</style>
  551.         <showName> <false /> </showName>
  552.         <highlight> <false /> </highlight>
  553.         <autoHighlight> <true /> </autoHighlight>
  554.         <sharedHighlight> <true /> </sharedHighlight>
  555.         <family>0</family>
  556.         <titleWidth>0</titleWidth>
  557.         <icon>0</icon>
  558.         <textAlign>center</textAlign>
  559.         <font>Chicago</font>
  560.         <textSize>12</textSize>
  561.         <textStyle>plain</textStyle>
  562.         <name></name>
  563.         <script></script>
  564.     </part>
  565.     <part>
  566.         <id>23</id>
  567.         <type>button</type>
  568.         <visible> <true /> </visible>
  569.         <reserved5> 0 </reserved5>
  570.         <reserved4> 0 </reserved4>
  571.         <reserved3> 0 </reserved3>
  572.         <reserved2> 0 </reserved2>
  573.         <reserved1> 0 </reserved1>
  574.         <enabled> <true /> </enabled>
  575.         <rect>
  576.             <left>185</left>
  577.             <top>308</top>
  578.             <right>345</right>
  579.             <bottom>326</bottom>
  580.         </rect>
  581.         <style>roundrect</style>
  582.         <showName> <true /> </showName>
  583.         <highlight> <false /> </highlight>
  584.         <autoHighlight> <true /> </autoHighlight>
  585.         <sharedHighlight> <true /> </sharedHighlight>
  586.         <family>0</family>
  587.         <titleWidth>0</titleWidth>
  588.         <icon>0</icon>
  589.         <textAlign>center</textAlign>
  590.         <font>Chicago</font>
  591.         <textSize>12</textSize>
  592.         <textStyle>plain</textStyle>
  593.         <name>Automatic Demo</name>
  594.         <script>on mouseUpglobal ListSelectExitput ListSelect("DIS",cd fld 2,"Geneva,9") into cd fld 8put ListSelectExit into cd fld "Exit"put ListSelect("1#","Here is a much longer string than before"&¬¨return&cd fld 2,"Selet item :",return,"My Button") into cd fld 8put ListSelectExit into cd fld "Exit"put ListSelect("*CON",cd fld 2,"Select the item you want from the list :"¬¨,"OK","","0,0","Monaco") into cd fld 8put ListSelectExit into cd fld "Exit"put ListSelect("*3#",cd fld 2,empty,return,"50,50,100,292",empty)¬¨into cd fld 8put ListSelectExit into cd fld "Exit"put ListSelect("ONE",cd fld 2,"User dialog",600) into cd fld 8put ListSelectExit into cd fld "Exit"put ListSelect("DIS#",cd fld 2,"Hello","100,150,101,151",empty,empty)¬¨into cd fld 8put ListSelectExit into cd fld "Exit"put ListSelect(3,cd fld 2,empty,"400,0,512,342") into cd fld 8put ListSelectExit into cd fld "Exit"end mouseUp</script>
  595.     </part>
  596.     <part>
  597.         <id>24</id>
  598.         <type>field</type>
  599.         <visible> <true /> </visible>
  600.         <dontWrap> <false /> </dontWrap>
  601.         <dontSearch> <false /> </dontSearch>
  602.         <sharedText> <false /> </sharedText>
  603.         <fixedLineHeight> <true /> </fixedLineHeight>
  604.         <autoTab> <false /> </autoTab>
  605.         <lockText> <true /> </lockText>
  606.         <rect>
  607.             <left>202</left>
  608.             <top>329</top>
  609.             <right>332</right>
  610.             <bottom>342</bottom>
  611.         </rect>
  612.         <style>rectangle</style>
  613.         <autoSelect> <false /> </autoSelect>
  614.         <showLines> <false /> </showLines>
  615.         <wideMargins> <false /> </wideMargins>
  616.         <multipleLines> <false /> </multipleLines>
  617.         <reservedFamily> 0 </reservedFamily>
  618.         <titleWidth>0</titleWidth>
  619.         <icon>0</icon>
  620.         <textAlign>center</textAlign>
  621.         <font>Geneva</font>
  622.         <textSize>9</textSize>
  623.         <textStyle>plain</textStyle>
  624.         <textHeight>12</textHeight>
  625.         <name>Exit</name>
  626.         <script></script>
  627.     </part>
  628.     <content>
  629.         <layer>card</layer>
  630.         <id>1</id>
  631.         <text><span class="style1">                                             </span><span class="style2">ListSelect 4.1</span><span class="style1">                                     </span><span class="style3">   by Fr√©d√©ric RINALDI</span><span class="style1"></span><span class="style2">DESCRIPTION</span><span class="style1">ListSelect is an XFCN that allows you to choose one or many items within a list appearing in a dialog on the screen. The XFCN is stand-alone, meaning that no extra resources (DLOG or DITL) are needed, but it can use personalized resources created by the user.Many powerful characteristics make it the Developer's best friend :‚Ä¢ 4 times quicker than DoList‚Ä¢ The input list can be a comma or return separated list, without the need notify the XFCN‚Ä¢ Select an item by typing its first letter on the keyboard‚Ä¢ Dialog Font and Font size can be set‚Ä¢ Sort the displayed list before display‚Ä¢ Selection can be unique, multiple continuous items or multiple discontinuous items‚Ä¢ The output can return item names or numbers‚Ä¢ The output list separator can be any char (comma, return, etc.)‚Ä¢ All Button names can be modified by parameter passing‚Ä¢ One or both buttons can be hidden‚Ä¢ Use up and down arrows for moving within the list‚Ä¢ Multiple selection with Command + up and down arrows‚Ä¢ Accepts Escape or Command Z to Cancel, Enter, Return or Double Click to validate‚Ä¢ Accepts Command-A to select all‚Ä¢ Option + up or down arrow selects the first or last list's element‚Ä¢ The order of parameters 3 to 8 doesn't matter‚Ä¢ Error messages are plenty and meaningfulMoreover, if you use automatic dialog creation :‚Ä¢ The dialog's width is automatically adjusted to the longest list's element(except if you define a rectangle for the dialog)‚Ä¢ The prompt message is optional, and its place in the dialog is recovered by the list if you leave it empty‚Ä¢ The prompt message can be of any length, the statText item is automatically adjusted‚Ä¢ If both buttons are hidden, their place is recovered too‚Ä¢ If only one button is hidden, the other is automatically centered‚Ä¢ Dialog's default positioning is centered on the card window, but you can set it at any location‚Ä¢ Dialog's rectangle can be defined exactly‚Ä¢ Buttons are automatically rearranged if the dialog isn't width enough to hold them juxtaposed‚Ä¢ If the user defined rectangle is too small, a default minimum rectangle is used</span><span class="style2">SYNTAX</span><span class="style1">ListSelect(<mode>,<liste> [,"s=#[,#]"][,"NoDoubleClick"][,prompt][,OK][,Cancel][,loc|Rect][,sep][,DLOG ID][font[,size]])</span><span class="style2">PARAMETERS</span><span class="style1">Mode"0" or "N[o]"   : no selection"1" or "O[ne]" : unique selection"2" or "C[on]" : multiple continuous selection"3" or "D[is]"  : multiple discontinuous selectionIf mode is preceded by "*" char, the list will be sorted before displayed.If mode is followed by "#" char, the output list will contain items' numbers, and not their names. Note that a sorted list returns item numbers of the previous list's order, so that you always can refer to the original list.List  Any return or comma delimited list container.s=#[,#]  An item string allowing to define the selected lines when the dialog pops. The list must be preceded by "s=".  Default is 1. Ex : "s=2,5"NoDoubleClick  With this param, the double-click in the list will have no action.Prompt, OK and Cancel  Any string, an empty string will hide the corresponding item in the dialog.Loc|Rect  X,Y are integer expressed in pixels corresponding to the topleft corner of the dialogor  X,Y,X',Y' are integer expressed in pixels corresponding to the topleft and bottomright corners of the dialog. With an user dialog, only X and Y will be used.Sep  Any character (return, tab, ",", etc.). The default one is comma.DLOG ID  Identifier of the DLOG resource created by the user, and following exactly these rules:    - minimum 4 items in the dialog    - Item #1 = validation button    - Item #2 = cancel button    - Item #3 = statText containing "^0"    - Item #4 = UserItem which size will define the list's size. Its height        must be a multiple of the chosen Font's textHeight.Font[,Size]  A string corresponding to an existing Font name. A second item in this string allows to set the desired Font size.   Using "!", "?" and "=" as parameter will return an online help (resp. copyright, syntax and output).</span><span class="style2">USING</span><span class="style1">  The XFCN return an item or an item list corresponding to the dialog's selection. This list will contain either names of items, either their numbers.Default item separator is Comma, but anything else can be chosen by call.  It is possible to know the way the user left the dialog by testing the global variable ListSelectExit set by the XFCN. This one will contain the name of the button used to leave (or "tabKey" if the user typed it). This is particularly useful when using a resource DLOG, any additional active button item being manageable from the script.If an error occurs, the ListSelect() will return :     "Error : Bad Rectangle Parameter 1"     "Error : Bad Rectangle Parameter 2"     "Error : Bad Rectangle Parameter 3"     "Error : Bad Rectangle Parameter 4"     "Error : Missing Parameter(s)"     "Error : Bad Mode Parameter"     "Error : Bad Font size"     "Error : Couldn't find DLOG Resource"     "Error : Missing DITL Item(s)"     "Error : Item #1 must be a button"     "Error : Item #2 must be a button"     "Error : Item #3 must be a statText"     "Error : Item #4 must be a userItem"     "Error : Out of memory"</span><span class="style2">TEST</span><span class="style1"> Fill the different parameter fields below, and check the corresponding checkboxes if you want to use it.--------------------------------------------------------------------                                        </span><span class="style2">REVISION HISTORY</span><span class="style1"></span><span class="style2">VERSION 4.1</span><span class="style1">                                                                            9/23/91‚Ä¢ Fixed initial selection bug‚Ä¢ Fixed bug appearing when first param was wrong‚Ä¢ Fixed bug appearing with non-standard card size</span><span class="style2">VERSION 4.0.1                                                       </span><span class="style1">8/22/91‚Ä¢ Added SetPort for SuperCard compatibility</span><span class="style2">VERSION 4.0 </span><span class="style1">                                                                            8/16/91‚Ä¢ Code completely cleaned‚Ä¢ Better display speed‚Ä¢ Added handling of extended keyboard keys to navigate in the list‚Ä¢ Locked parameters for HC 2.0‚Ä¢ Added "=" online help param</span><span class="style2">VERSION 3.9</span><span class="style1">‚Ä¢ Changed sort array indice‚Ä¢ Added SetPort for SuperCard compatibility</span><span class="style2">VERSION 3.8</span><span class="style1">‚Ä¢ Internal enhancement</span><span class="style2">VERSION 3.7</span><span class="style1">‚Ä¢ Changed the way of passing the listHandle to FilterProc.‚Ä¢ Fixed the anticipated validation.‚Ä¢ Added the selected lines param.</span><span class="style2">VERSION 3.6</span><span class="style1">‚Ä¢ Fixed a bug appearing after validation of an empty selection.</span><span class="style2">VERSION 3.5</span><span class="style1">‚Ä¢ Use notification manager for HC 2.0</span><span class="style2">VERSION 3.4</span><span class="style1">‚Ä¢ Tab, Esc, Return & Enter are always recognized, even with many key typing</span><span class="style2">VERSION 3.3</span><span class="style1">‚Ä¢ NoDoubleClick param added to avoid double clicking in the list.‚Ä¢ Coordinates are now allowed for custom dialog.‚Ä¢ XFCN doesn't consume any byte in memory anymore‚Ä¢ New, quicker sort routine</span><span class="style2">VERSION 3.2</span><span class="style1">‚Ä¢ Now fully compatible with SuperCard & Plus.‚Ä¢ Internal result building enhanced.</span><span class="style2">VERSION 3.1</span><span class="style1">‚Ä¢ Tiny bug in parameter parsing fixed‚Ä¢ ListSelectExit contains "Error" if an error happened</span><span class="style2">VERSION 3.0</span><span class="style1">‚Ä¢ Font and size choosing added‚Ä¢ New mode parameters : ONE, CON, DIS for 1,2,3. Compatability with previous versions is preserved.‚Ä¢ New mode NO (or 0) for a display without selection.‚Ä¢ Optional sorting of the list implemented‚Ä¢ Dialog's max width according to card‚Ä¢ Added possibility to handle buttons in DLOG resources‚Ä¢ Many aesthetic and functional changes</span><span class="style2">VERSION 2.3</span><span class="style1">‚Ä¢ You no longer need to wait for the dialog before beginning to type‚Ä¢ The XFCN sets now a global variable named "ListSelectExit" that you can test to know the way the user exit the list. This global can contain :   "Validated" : the user double-clicked, clicked on OK, typed Return or Enter   "Cancelled" : the user clicked on CANCEL, typed ESCAPE key or Cmd-Z   "TabKey"    : the user typed TAB key   "Infos"        : you passed an info parameter (see below)‚Ä¢ You can use two new first parameters :   "!" : the XFCN returns version number and copyright information   "?": the XFCN returns syntax help</span><span class="style2">VERSION 2.2</span><span class="style1">‚Ä¢ The XFCN uses now international resources for string comparison.‚Ä¢ More than one character can be typed to select an items in the list.‚Ä¢ Fixed a display bug when one or more empty items or lines start the list.</span><span class="style2">VERSION 2.1</span><span class="style1">‚Ä¢ No more DLOG et DITL resources needed, the XFCN creates them by itself.--------------------------------------------------------------------This (these) external(s) is (are) FreeWare, allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack.Any commercial use must be licensed and acknowledged by the author.                               </span><span class="style2">¬© F. Rinaldi - 1989,1990,1991AppleLink: RINALDI1        CalvaCom : FR10        Compuserve : 71170,2111</span></text>
  632.     </content>
  633.     <content>
  634.         <layer>card</layer>
  635.         <id>9</id>
  636.         <text>ZoomRectXprintFieldXcleanUnmountTxMIDITurnSpeechOnTurnSpeechOffTrapReturnTitleBarTextStreamTalkPhoneticTalkConvertTalkSuspendinstallStopTabsStdFileStatusDialogSTARSpeakSoundCapToResShutDownShowMenuShowDialogShowCursorShowAlertSetVolumeSetRateSetPVolumeSetPitchSetModeSetDialogSetDeskSetSendSPortSendSerialSendATScanSayPhoneticSaySafeShutDownRestartResetSPortResetPrinterResetMIDIResDeleteResCopyTypesResCopyResChngInfoRenameFileRegisterATReceiveATPutClipboardPutAlertPromptProgressPromptProgressPrintTextPrintrectPrintFldPrintFieldPrintClipPrFieldPostEventPopUpPictureOpenSPortNewFolderMungeMCTBMultiScrollMountModResCopyModDialogMenuSetMenuRemoveMenuMgrMenuInstallMenuInsertMenuCheckMenuChangeMakeRandomMakeICONLookupATKillResIDKillResInitMIDIImportPICTHyperSoundCommWriteCommInitCombineFilesColumnizeColorCloseResForkCheckMenuChangeMenuChangeCursBreakSportBeepSoundBarButtonAuxWindowADBLightsAbout</text>
  637.     </content>
  638.     <content>
  639.         <layer>card</layer>
  640.         <id>10</id>
  641.         <text>Choose:</text>
  642.     </content>
  643.     <content>
  644.         <layer>card</layer>
  645.         <id>14</id>
  646.         <text>0,0,1,1</text>
  647.     </content>
  648.     <content>
  649.         <layer>card</layer>
  650.         <id>11</id>
  651.         <text>Geneva,9</text>
  652.     </content>
  653.     <content>
  654.         <layer>card</layer>
  655.         <id>12</id>
  656.         <text>Toto</text>
  657.     </content>
  658.     <content>
  659.         <layer>card</layer>
  660.         <id>13</id>
  661.         <text>600</text>
  662.     </content>
  663.     <content>
  664.         <layer>card</layer>
  665.         <id>8</id>
  666.         <text>*1</text>
  667.     </content>
  668.     <content>
  669.         <layer>card</layer>
  670.         <id>24</id>
  671.         <text>OK</text>
  672.     </content>
  673.     <content>
  674.         <layer>card</layer>
  675.         <id>15</id>
  676.         <text>About</text>
  677.     </content>
  678.     <name></name>
  679.     <script></script>
  680. </card>
  681.  
  682.  
  683.